import Cookie from 'js-cookie';
export const pageRules = {
	"01": function(resObj) {
		let token = resObj.result.token;
		console.log(token);
		Cookie.set('token', token);
		this.$router.replace({
			path:'/index'
		});
	},
	"02": function(resObj) {
		let requestUri = decodeURIComponent(resObj.result.requestUri);
		console.log('后台返回的重新跳转路径');
		console.log(requestUri);
		let token = resObj.result.token;
		console.log(token);
		Cookie.set('token', token);
		if (requestUri) {
			this.$router.replace({
				path:requestUri
			});
		}
	},
	"98": function() {
		this.$router.push('/info');
	},
	"99": function() {
		this.$router.push('/error');
	}

};
